﻿using Cysharp.Threading.Tasks;
using GameFramework.Fsm;
using GameFramework.Procedure.Attribute;
using GameFramework.UI;
using GameFramework.UI.FairyGUI;

namespace GameLogic.Launch
{
    /// <summary>
    /// 打开启动界面流程
    /// </summary>
    [Procedure]
    public sealed class OpenLaunchFormProcedure : ALaunchStepProcedure
    {
        protected override LaunchStep Step => LaunchStep.OpenLaunchForm;
        protected override UniTask<int> ExecuteStep()
        {
            // TODO Open Launch Form
            return UniTask.FromResult(0);
        }

        protected override void OnCompleteUpdate(IFsm fsm)
        {
            Change<CheckVersionProcedure>(fsm);
        }
    }
}